﻿<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Label1.Text = "Hello " & TextBox1.Text & "<br />" & "Date Selected: " & Calendar1.SelectedDate.ToShortDateString()
    End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>First Page</title>
</head>
<body>
    <form id="form1" runat="server">
        Enter Your Name:<br />
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <p>
        When Do You Want To Fly???<br />
        <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
        </p>
        <br />
        <asp:Button ID="Button1" runat="server" Text="Submit Page To Itself" OnClick="Button1_Click" />&nbsp;
        <asp:Button ID="Button2" runat="server" Text="Submit Page To Page2.aspx" PostBackUrl="~/Page2.aspx" />
        <p>
        <asp:Label ID="Label1" runat="server"></asp:Label>
        </p>
    </form>
</body>
</html>
